package com.os.sys.pojo;

import com.os.common.validator.CheckSpecialCharacters;

import java.io.Serializable;
import java.util.List;

public class SysUser implements Serializable{
	private static final long serialVersionUID = 1L; 	
	//用于在前台显示预序号用
	private int user_index=0;
	private String user_id;
	private String user_name;
	private String user_pwd;
	private String user_sname;
	//特殊字符校验，不用可以去掉
	@CheckSpecialCharacters
	private String user_comment;

	private int user_ukey;
	private int user_enable;
	
	private Boolean auth_enable;
	private int auth_user_id;
	private String auth_user_name;
	private String auth_user_sname;
	private String auth_enable_name="否";
	
	
	public int getUser_ukey() {
		return user_ukey;
	}
	public void setUser_ukey(int user_ukey) {
		this.user_ukey = user_ukey;
	}
	public String getUser_comment() {
		return user_comment==null?"":user_comment;
	}
	public void setUser_comment(String user_comment) {
		this.user_comment = user_comment;
	}
	public String getUser_id() {
		return user_id;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public String getUser_name() {
		return user_name==null?"":user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public String getUser_pwd() {
		return user_pwd==null?"":user_pwd;
	}
	public void setUser_pwd(String user_pwd) {
		this.user_pwd = user_pwd;
	}
	public String getUser_sname() {
		return user_sname==null?"":user_sname;
	}
	public void setUser_sname(String user_sname) {
		this.user_sname = user_sname;
	}

	private String username;
	private String password;
	private List<String> roles;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public List<String> getRoles() {
		return roles;
	}

	public void setRoles(List<String> roles) {
		this.roles = roles;
	}

	public String getPrintStr(){
		String Str = "";
//		Str = "[(user_id,"+user_id+"),"+ 
//		             "(user_name,"+user_name+"),"+ 
//		             "(user_sname,"+user_sname+")" +
//		             "(user_comment,"+user_comment+")" +
//		             "(user_pwd,"+user_pwd+")" +
//		             "(user_ukey,"+user_ukey+")" +
//		             		"]";
		return Str;
	}
    
	public void printMe(){
		System.out.print(this.getPrintStr() );
		
	}
	public int getUser_index() {
		return user_index;
	}
	public void setUser_index(int user_index) {
		this.user_index = user_index;
	}

	public int getUser_enable() {
		return user_enable;
	}
	public void setUser_enable(int user_enable) {
		this.user_enable = user_enable;
		if(user_enable==1){
			user_enable_name = "启用";
		}else{
			user_enable_name = "禁用";
		}
	}
	
	private String user_enable_name;

	public String getUser_enable_name() {
		return user_enable_name;
	}
	public void setUser_enable_name(String user_enable_name) {
		this.user_enable_name = user_enable_name;
	}
	
	private String user_ukey_name;
	
	
	public String getUser_ukey_name() {
		if(user_ukey==1){
			user_ukey_name = "启用";
		}else{
			user_ukey_name = "禁用";
		}
		return user_ukey_name;
	}
	public void setUser_ukey_name(String user_ukey_name) {
		this.user_ukey_name = user_ukey_name;
	}

	/** 
	 * 性别
	 **/ 
	public int sex_id;

	public void setSex_id(int sex_id) {
	    this.sex_id = sex_id;
	}
	public int getSex_id() {
	    return sex_id;
	}
	/** 
	 * 性别
	 **/ 
	public String sex_name;

	public void setSex_name(String sex_name) {
	    this.sex_name = sex_name;
	}
	public String getSex_name() {
	    return sex_name;
	}
	/** 
	 * 出生日期
	 **/ 
	public String user_birth;

	public void setUser_birth(String user_birth) {
	    this.user_birth = user_birth;
	}
	public String getUser_birth() {
	    return user_birth==null?"":user_birth;
	}
	/** 
	 * 民族
	 **/ 
	public int nation_id;

	public void setNation_id(int nation_id) {
	    this.nation_id = nation_id;
	}
	public int getNation_id() {
	    return nation_id;
	}
	/** 
	 * 民族
	 **/ 
	public String nation_name;

	public void setNation_name(String nation_name) {
	    this.nation_name = nation_name;
	}
	public String getNation_name() {
	    return nation_name;
	}
	/** 
	 * 身份证号
	 **/ 
	public String user_idcard;

	public void setUser_idcard(String user_idcard) {
	    this.user_idcard = user_idcard;
	}
	public String getUser_idcard() {
	    return user_idcard==null?"":user_idcard;
	}
	/** 
	 * 联系电话
	 **/ 
	public String user_phone;

	public void setUser_phone(String user_phone) {
	    this.user_phone = user_phone;
	}
	public String getUser_phone() {
	    return user_phone==null?"":user_phone;
	}
	/** 
	 * 所属区划
	 **/ 
	public int region_id;

	public void setRegion_id(int region_id) {
	    this.region_id = region_id;
	}
	public int getRegion_id() {
	    return region_id;
	}
	/** 
	 * 所属区划
	 **/ 
	public String region_name;

	public void setRegion_name(String region_name) {
	    this.region_name = region_name;
	}
	public String getRegion_name() {
	    return region_name;
	}
	/** 
	 * 住址
	 **/ 
	public String user_addr;

	public void setUser_addr(String user_addr) {
	    this.user_addr = user_addr;
	}
	public String getUser_addr() {
	    return user_addr==null?"":user_addr;
	}
	/** 
	 * 一寸照片
	 **/ 
	public String user_pic;

	public void setUser_pic(String user_pic) {
	    this.user_pic = user_pic;
	}
	public String getUser_pic() {
	    return user_pic==null?"":user_pic;
	}
	public int getAuth_user_id() {
		return auth_user_id;
	}
	public void setAuth_user_id(int auth_user_id) {
		this.auth_user_id = auth_user_id;
	}
	public String getAuth_user_name() {
		return auth_user_name;
	}
	public void setAuth_user_name(String auth_user_name) {
		this.auth_user_name = auth_user_name;
	}
	public String getAuth_user_sname() {
		return auth_user_sname;
	}
	public void setAuth_user_sname(String auth_user_sname) {
		this.auth_user_sname = auth_user_sname;
	}
	public String getAuth_enable_name() {
		return this.getAuth_enable()==Boolean.TRUE?"是":"否";
	}
	public void setAuth_enable_name(String auth_enable_name) {
		this.auth_enable_name = auth_enable_name;
	}
//	public int getAuth_enable() {
//		return auth_enable;
//	}
//	public void setAuth_enable(int auth_enable) {
//		this.auth_enable = auth_enable;
//	}auth_enable

	public Boolean getAuth_enable() {
		return auth_enable;
	}

	public void setAuth_enable(Boolean auth_enable) {
		this.auth_enable = auth_enable;
	}

	//以下为视图字段
	private String org_ids;
	private String org_names;
	private String role_names;
	private String role_ids;


	public String getOrg_ids() {
		return org_ids==null?"":org_ids;
	}
	public void setOrg_ids(String org_ids) {
		this.org_ids = org_ids;
	}
	public String getOrg_names() {
		return org_names==null?"":org_names;
	}
	public void setOrg_names(String org_names) {
		this.org_names = org_names;
	}
	public String getRole_names() {
		return role_names==null?"":role_names;
	}
	public void setRole_names(String role_names) {
		this.role_names = role_names;
	}
	public String getRole_ids() {
		return role_ids==null?"":role_ids;
	}
	public void setRole_ids(String role_ids) {
		this.role_ids = role_ids;
	}
	
	private int user_ord;

	public int getUser_ord() {
		return user_ord;
	}
	public void setUser_ord(int user_ord) {
		this.user_ord = user_ord;
	}
	//是否参与考勤  1-参与 考勤
	private int user_check;


	public int getUser_check() {
		return user_check;
	}
	public void setUser_check(int user_check) {
		this.user_check = user_check;
	}
	

	private String user_uid="";
	public String getUser_uid() {
		return user_uid==null?"":user_uid;
	}
	public void setUser_uid(String user_uid) {
		this.user_uid = user_uid;
	}

	@Override
	public String toString() {
		return "SysUser{" +
				"user_index=" + user_index +
				", user_id='" + user_id + '\'' +
				", user_name='" + user_name + '\'' +
				", user_pwd='" + user_pwd + '\'' +
				", user_sname='" + user_sname + '\'' +
				", user_comment='" + user_comment + '\'' +
				", user_ukey=" + user_ukey +
				", user_enable=" + user_enable +
				", auth_enable=" + auth_enable +
				", auth_user_id=" + auth_user_id +
				", auth_user_name='" + auth_user_name + '\'' +
				", auth_user_sname='" + auth_user_sname + '\'' +
				", auth_enable_name='" + auth_enable_name + '\'' +
				", username='" + username + '\'' +
				", password='" + password + '\'' +
				", user_enable_name='" + user_enable_name + '\'' +
				", user_ukey_name='" + user_ukey_name + '\'' +
				", sex_id=" + sex_id +
				", sex_name='" + sex_name + '\'' +
				", user_birth='" + user_birth + '\'' +
				", nation_id=" + nation_id +
				", nation_name='" + nation_name + '\'' +
				", user_idcard='" + user_idcard + '\'' +
				", user_phone='" + user_phone + '\'' +
				", region_id=" + region_id +
				", region_name='" + region_name + '\'' +
				", user_addr='" + user_addr + '\'' +
				", user_pic='" + user_pic + '\'' +
				", org_ids='" + org_ids + '\'' +
				", org_names='" + org_names + '\'' +
				", role_names='" + role_names + '\'' +
				", role_ids='" + role_ids + '\'' +
				", user_ord=" + user_ord +
				", user_check=" + user_check +
				", user_uid='" + user_uid + '\'' +
				'}';
	}
}
